module(..., package.seeall)

new = function ()
	localGroup = display.newGroup();	
	print("GameMainScreen");
	local myText = display.newText("Monster Scape", 0, 0, native.systemFont, 16)
	myText:setTextColor(255, 255, 255)
	localGroup:insert(myText);
	
	local playButton = display.newImageRect( "play.png", 256, 256 )
	playButton.x = 200;
	playButton.y = 200;
	playButton.xScale = 0.5;
	playButton.yScale = 0.5;
	
	localGroup:insert(playButton);
		
 
	local function listener(event) 
		if (event.phase == "ended") then
			print(event.name.."occurred");
			director:changeScene("GameLevelSelect", "crossfade");
		end
		return true 
	end
 
	playButton:addEventListener("touch", listener);
	
	
	return localGroup;	
end